function getPageLocation(pageIndex) {
    var _url = location.href;
    var _n = _url.lastIndexOf("?");
    if(_n==(-1))
        return _url + "?page=" + pageIndex;
    var query = _url.substring(_n+1);
    var pairs = query.split("&");
    var newQuery = "";
    for(var i=0; i<pairs.length; i++) {
        var pos = pairs[i].indexOf("=");
        if(pos==-1) continue;
        var argname = pairs[i].substring(0,pos);
        if(argname=="page") continue;
        newQuery = newQuery + pairs[i] + "&";
    }
    return _url.substring(0,_n+1) + newQuery + "page=" + pageIndex;
}

function hoverPage(tdObj){
	tdObj.style.backgroundColor="#0061de";
	tdObj.style.color="#ffffff";
}

function normalPage(tdObj){
	tdObj.style.backgroundColor="#ffffff";
	tdObj.style.color="#0061de";
}

